<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Snake: C:/Documents and Settings/HP_Omistaja/Työpöytä/windowsPeli/winPeliSVN/winPeli/main.h lähdekooditiedosto</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generoinut Doxygen 1.7.4 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Snake</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Pääsivu</span></a></li>
      <li><a href="namespaces.html"><span>Nimiavaruudet</span></a></li>
      <li><a href="annotated.html"><span>Luokat</span></a></li>
      <li class="current"><a href="files.html"><span>Tiedostot</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Tiedostolista</span></a></li>
      <li><a href="globals.html"><span>Tiedoston&#160;jäsenet</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('main_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">C:/Documents and Settings/HP_Omistaja/Työpöytä/windowsPeli/winPeliSVN/winPeli/main.h</div>  </div>
</div>
<div class="contents">
<a href="main_8h.html">Siirry tämän tiedoston dokumentaatioon.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;cstdio&gt;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &lt;windows.h&gt;</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &lt;string.h&gt;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;time.h&gt;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &quot;<a class="code" href="block_8h.html">block.h</a>&quot;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &quot;<a class="code" href="snake_8h.html">snake.h</a>&quot;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &quot;..\RegistryDLL\registry.h&quot;</span>
<a name="l00015"></a>00015 
<a name="l00016"></a><a class="code" href="main_8h.html#a269355668f3684c64057e02ac1e71964">00016</a> <span class="keyword">const</span> <span class="keywordtype">char</span> <a class="code" href="main_8h.html#a269355668f3684c64057e02ac1e71964">g_szClassName</a>[] = <span class="stringliteral">&quot;myWindowClass&quot;</span>;
<a name="l00017"></a><a class="code" href="main_8h.html#aba798b12fcdeffa10019873c8b6286bf">00017</a> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="main_8h.html#aba798b12fcdeffa10019873c8b6286bf">GAMEWIDTH</a> = 20;
<a name="l00018"></a><a class="code" href="main_8h.html#a97754c65b765fd279d70772246b14b90">00018</a> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="main_8h.html#a97754c65b765fd279d70772246b14b90">GAMEHEIGHT</a> = 16;
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="preprocessor">#ifndef LANG</span>
<a name="l00021"></a><a class="code" href="main_8h.html#ad9a96c13ef87186fa4d655d45604a20a">00021</a> <span class="preprocessor"></span><span class="preprocessor">#define LANG 0</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span>
<a name="l00024"></a>00024 <span class="preprocessor">#if LANG == 0</span>
<a name="l00025"></a><a class="code" href="main_8h.html#a6318aa90c9ce25281d80862cc695261e">00025</a> <span class="preprocessor"></span><span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="main_8h.html#a6318aa90c9ce25281d80862cc695261e">TEXT_DIFFICULTY</a> = <span class="stringliteral">&quot;Vaikeusaste&quot;</span>;
<a name="l00026"></a><a class="code" href="main_8h.html#a6f51dcf50b525d3658b1438052ecf7dd">00026</a> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="main_8h.html#a6f51dcf50b525d3658b1438052ecf7dd">TEXT_SCORE</a> = <span class="stringliteral">&quot;Pisteet&quot;</span>;
<a name="l00027"></a><a class="code" href="main_8h.html#a09e0039a5f0f6c64c72198f4f65e12de">00027</a> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="main_8h.html#a09e0039a5f0f6c64c72198f4f65e12de">TEXT_GAMEOVER</a> = <span class="stringliteral">&quot;PELI OHI&quot;</span>;
<a name="l00028"></a>00028 <span class="preprocessor">#elif LANG == 1</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="main_8h.html#a6318aa90c9ce25281d80862cc695261e">TEXT_DIFFICULTY</a> = <span class="stringliteral">&quot;Difficulty&quot;</span>;
<a name="l00030"></a>00030 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="main_8h.html#a6f51dcf50b525d3658b1438052ecf7dd">TEXT_SCORE</a> = <span class="stringliteral">&quot;Score&quot;</span>;
<a name="l00031"></a>00031 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="main_8h.html#a09e0039a5f0f6c64c72198f4f65e12de">TEXT_GAMEOVER</a> = <span class="stringliteral">&quot;GAME OVER&quot;</span>;
<a name="l00032"></a>00032 <span class="preprocessor">#elif LANG == 2</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="main_8h.html#a6318aa90c9ce25281d80862cc695261e">TEXT_DIFFICULTY</a> = <span class="stringliteral">&quot;Svårighetsgrad&quot;</span>;
<a name="l00034"></a>00034 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="main_8h.html#a6f51dcf50b525d3658b1438052ecf7dd">TEXT_SCORE</a> = <span class="stringliteral">&quot;Poäng&quot;</span>;
<a name="l00035"></a>00035 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="main_8h.html#a09e0039a5f0f6c64c72198f4f65e12de">TEXT_GAMEOVER</a> = <span class="stringliteral">&quot;SPELET ÖVER&quot;</span>;
<a name="l00036"></a>00036 <span class="preprocessor">#endif</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span>
<a name="l00038"></a>00038 
<a name="l00039"></a><a class="code" href="main_8h.html#a616e4ef7bbcd56536bbc19dfd5563df2">00039</a> <span class="keyword">const</span> COLORREF <a class="code" href="main_8h.html#a616e4ef7bbcd56536bbc19dfd5563df2">colors</a>[4] = {RGB(20,20,150), RGB(150,20,20), RGB(20,150,20), RGB(192,192,192)};
<a name="l00040"></a><a class="code" href="main_8h.html#a016a5d341f375d13639c75bf5987fb23">00040</a> <span class="keywordtype">int</span> <a class="code" href="main_8h.html#a016a5d341f375d13639c75bf5987fb23">difficulty</a> = 1;
<a name="l00041"></a><a class="code" href="main_8h.html#a0fd02fb9277ffcb35a75066ffe95e8c7">00041</a> <span class="keywordtype">int</span> <a class="code" href="main_8h.html#a0fd02fb9277ffcb35a75066ffe95e8c7">color</a> = 3;
<a name="l00042"></a><a class="code" href="main_8h.html#aef160b7437d94056f1dc59646cd5b87d">00042</a> <span class="keywordtype">int</span> <a class="code" href="main_8h.html#aef160b7437d94056f1dc59646cd5b87d">score</a> = 0;
<a name="l00043"></a><a class="code" href="main_8h.html#ae5e9542e61196e233d289084760e4ab1">00043</a> <span class="keywordtype">int</span> <a class="code" href="main_8h.html#ae5e9542e61196e233d289084760e4ab1">highscore</a> = 0;
<a name="l00044"></a><a class="code" href="main_8h.html#a886d551d5381dc3e53f17825ffc51641">00044</a> <span class="keywordtype">int</span> <a class="code" href="main_8h.html#a886d551d5381dc3e53f17825ffc51641">direction</a> = 0;
<a name="l00045"></a><a class="code" href="main_8h.html#a5b43e44f713e3c93be6db1e65774c2db">00045</a> <span class="keywordtype">bool</span> <a class="code" href="main_8h.html#a5b43e44f713e3c93be6db1e65774c2db">gameover</a> = <span class="keyword">false</span>;
<a name="l00046"></a><a class="code" href="main_8h.html#a62d8100f501558ad77ffb7ca29606347">00046</a> <a class="code" href="class_block.html">Block</a>* <a class="code" href="main_8h.html#a62d8100f501558ad77ffb7ca29606347">food</a>;
<a name="l00047"></a><a class="code" href="main_8h.html#a408cd599ea288e5b692809edb69e65c2">00047</a> <a class="code" href="class_snake.html">Snake</a>* <a class="code" href="main_8h.html#a408cd599ea288e5b692809edb69e65c2">snake</a>;
<a name="l00048"></a>00048 
<a name="l00049"></a>00049 <span class="keywordtype">int</span> WINAPI <a class="code" href="main_8cpp.html#a661c2abc03926acfaeb93b4ae7db4943">WinMain</a>(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, <span class="keywordtype">int</span> nCmdShow);
<a name="l00050"></a>00050 <span class="keywordtype">void</span> <a class="code" href="main_8cpp.html#a7e9e2c2162571da55cf8b32cf826e650">processArguments</a>(<span class="keywordtype">int</span> argc, LPWSTR* argv);
<a name="l00051"></a>00051 HANDLE <a class="code" href="main_8cpp.html#ae3381485885520faf445dbe50f0303b4">initGame</a>(HINSTANCE hInstance, <span class="keywordtype">int</span> nCmdShow);
<a name="l00052"></a>00052 DWORD WINAPI <a class="code" href="main_8cpp.html#ac7c40abcdda5e965e92c6a8c53f802aa">Update</a>(LPVOID lpParam);
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="main_8h.html">main.h</a>      </li>
      <li class="footer">Generoinut projektille Snake Sat Apr 16 2011 19:06:20 &#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li>
    </ul>
  </div>

</body>
</html>
